Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fillcolor parameter for Transform #2852

Merged
merged 4 commits into from
Dec 9, 2017

Conversation

wiredfool
Copy link
Member

Fixes #2837 .

Changes proposed in this pull request:

  • Adds fillcolor parameter to transform to fill the target image prior to the transform
  • Pipes through the existing fill parameter in _imaging.transform2 rather than hardwiring it to true.

Note: This extends the api and retains the currently mostly ignored fill parameter. This fill parameter is currently passed into the ImageTransformHandler api, which has user supplied code that we don't control. If we repurpose that parameter, we risk breaking existing code.

w*2, h*2),
Image.BILINEAR,
fill = 'red')
transformed.show()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've left debugging code in?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and two copies of the same test.

@wiredfool wiredfool merged commit 588944c into python-pillow:master Dec 9, 2017
@wiredfool wiredfool deleted the issue_2837 branch January 8, 2018 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants